#!/usr/bin/env python
#-*- coding:UTF-8 -*-
#####################################################
# Author: Jiaion - jiaion21@gmail.com
# Last modified:	2011-02-10 21:59
# Filename:	Fabric.py
#####################################################

from fabric.api import * 
import sys

__ALL__ = [
      'Ls','Viwe',
      'Load','keepalived'
      ]

env.host_string = '192.168.1.253'
env.password = ''
FILE = '/tmp/1-jiaion.log'

def Ls():
    run("ls")

def Viwe():
    run("dmidecode")

def Load():
    run("w")

def keepalived():
    with cd('/root/jiaion'):
        run("./install.sh")
